package com.site.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

public abstract class BaseForm<T>{

    @ApiModelProperty(value = "当前页")
    @Setter
    @Getter
    private Integer pageNum=1;
    @ApiModelProperty(value = "每页总数")
    @Setter
    @Getter
    private Integer pageSize=10;

    /**
     * 获取实例
     * @return 返回实体类
     */
    public abstract T buildEntity();

    /**
     * 新增分组
     */
    public interface Create{}

    /**
     * 查询分组
     */
    public interface Select{}

    /**
     * 更新分组
     */
    public interface Update{}

    /**
     * 删除分组
     */
    public interface Delete{}
}